package com.monster.springboot.consumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.monster.dubbo.springboot.common.model.entity.UserEntity;
import com.monster.dubbo.springboot.common.service.IUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:
 *
 * @author Yuanml on 2020/12/15 11:02
 */
@RestController
public class UserController {
    @Reference(version = "1.0.0", check = false)
    private IUserService userService;

    @GetMapping("/queryById")
    public UserEntity queryById(Integer id) {
        return userService.queryById(id);
    }
}
